<!--{template Header.htm}-->
<style type="text/css">
	.mui-table-view-cell:after {
		left: 1px;
	}
	.content {
		margin-top: 45px;
	}
</style>
<header class="mui-bar mui-bar-nav">
	<a class="mui-icon mui-icon-home mui-pull-left" href="./index.php" target="_blank"></a>
	<h1 class="mui-title">{$title}</h1>
</header>
<ul class="mui-table-view mui-table-view-chevron content">
	<li class="mui-table-view-cell">
		<a href="./admin.php?c=Admin&a=setting&token={$token}" class="mui-navigate-right">网站设置</a>
	</li>
	<li class="mui-table-view-cell">
		<a href="./admin.php?c=Admin&a=modifyPassword&token={$token}" class="mui-navigate-right">修改密码</a>
	</li>
	<li class="mui-table-view-cell">
		<a href="./admin.php?c=CategoryManage&a=add&token={$token}" class="mui-navigate-right">添加分类</a>
	</li>
	<li class="mui-table-view-cell">
		<a href="./admin.php?c=CategoryManage&token={$token}" class="mui-navigate-right">管理分类</a>
	</li>
	<li class="mui-table-view-cell">
		<a href="./admin.php?c=ArticleManage&a=add&token={$token}" class="mui-navigate-right">添加文章</a>
	</li>
	<li class="mui-table-view-cell">
		<a href="./admin.php?c=ArticleManage&token={$token}" class="mui-navigate-right">管理文章</a>
	</li>
	<li class="mui-table-view-cell">
		<a href="./admin.php?c=LinkManage&a=add&token={$token}" class="mui-navigate-right">添加友链</a>
	</li>
	<li class="mui-table-view-cell">
		<a href="./admin.php?c=LinkManage&token={$token}" class="mui-navigate-right">管理友链</a>
	</li>
</ul>
<ul class="mui-table-view">
	<li class="mui-table-view-cell">
		<a href="javascript:logout();">退出登录</a>
	</li>
</ul>
<script type="text/javascript">
	function logout() {
		if (confirm("真的要退出吗？")) {
			jQuery.post("./api.php?c=Token&a=revoke", {
				token: "{$token}"
			}, function(result) {
				if (result.code == 1) {
					window.location = "./admin.php?c=Unlogin";
				} else {
					alert(result.msg);
				}
			}, "json");
		}
	}
</script>
<!--{template Footer.htm}-->